package model.expression.command;

import state.TabState;
import state.TurtleState;

public class ShowingP extends AbstractCommandExpression {
	
	public ShowingP(TabState ts) {
		super(ts);
	}
	
	@Override
	protected int getExpNumChildren() {
		return 0;
	}

	@Override
	public int evaluate() {
		TurtleState firstActiveTurtle = tabSt.turtlesMap.get(tabSt.getActiveTurtle().get(0));
		return firstActiveTurtle.isShown()?1:0;
	}

}
